package il.ac.braude.sona.ui.forms.myforms;

import il.ac.braude.sona.strings.Resources;
import il.ac.braude.sona.ui.forms.FormFrame;
import il.ac.braude.sona.ui.forms.FormPanel;
import il.ac.braude.ui.forms.questions.QPassword;
import il.ac.braude.ui.forms.questions.QTextField;

import java.awt.Color;

import javax.swing.JFrame;
import javax.swing.JLabel;

public class LoginForm extends FormFrame {

	public LoginForm() {
		super(Resources.Strings.LoginFormTitle,Resources.Strings.OK);
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		FormPanel form = new FormPanel();
		form.addQuestion(new QTextField(Resources.Strings.UserName));
		form.addQuestion(new QPassword(Resources.Strings.Password));
		setForm(form);
	}

	public void showLoginError() {
		showMessege(Resources.Strings.IncorrectLogin);
	}





}
